Repository navigation
chore(docs): settle yarn's unmet peer requirements - #25779
Merged
Merged
Conversation
`yarn install` in docs/ printed YN0086 for 39 unmet peer requirements. None is a dependency docs uses without declaring: react, react-dom, @mdx-js/react and @docusaurus/plugin-content-docs are already direct dependencies. packageExtensions in .yarnrc.yml now: - mark optional the peers that no package loads where they go unprovided: Algolia autocomplete's client peers (.d.ts only), react on @docusaurus/types (types only) and on the helmet copies it holds for types, core's @mdx-js/react (core resolves it from the site directory), file-loader's webpack and ts-node's @types/node; - pass a real peer through from the parent where an intermediate dropped it: plugin-content-docs via theme-mermaid, and react and react-dom via plugin-css-cascade-layers. Each entry is pinned to the version it was checked against, so an upgrade brings the warning back. No package.json or yarn.lock change: a clean install resolves the same tree as before.
asterite
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The docs
yarn installwarned about 39 unmet peer dependencies. None of them was a package the docs use without declaring it, so this only tells Yarn which peers aren't needed here, and passes two real ones through. Installs are now warning-free; the lockfile and the installed packages don't change.